<%--
  Created by IntelliJ IDEA.
  User: XT
  Date: 2022/3/8
  Time: 14:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册界面</title>
    <link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="easyui/css/default.css" />
    <link rel="stylesheet" type="text/css" href="easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="easyui/css/demo.css">
    <script type="text/javascript" src='easyui/js/outlook2.js'> </script>
    <script type="text/javascript" src="easyui/jquery.min.js"></script>
    <script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="easyui/themes/locale/easyui-lang-zh_CN.js"></script>
    <style>
        #div1_div1 {
            text-align: center;
            height: 80px;
            line-height: 80px;
            font-size: 25px;
            color: #000000;
            font-weight: bold;

        }
    </style>
</head>
<body>
<div id="dlg" class="easyui-dialog" title="添加员工" style="width:450px;height:500px;padding:10px"
     data-options="buttons: '#dlg-buttons',draggable:false">
    <div id = "div1_div1">添加员工</div>
    <span style="color: red;font-size: 12px;margin-left: 130px">${RegisterMsg}</span>
    <form id = "myForm" action="${pageContext.request.contextPath}/RegisterServlet" method="post" >
        <table  lay-filter="demo"align="center">
            <tr>
                <td>工&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</td>
                <td><input type="text" id="ygh" name="ygh"  placeholder="请输入工号"></td>
            </tr>
            <tr>
                <td>姓名</td>
                <td><input type="text" id="xm" name="xm" ></td>
            </tr>
            <tr>
                <td>密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码</td>
                <td><input type="password" id="mm" name="mm"  placeholder="请输入密码"></td>
            </tr>
            <tr>
                <td>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别</td>
                <td><input type="text" id="xb" name="xb"  placeholder="请输入性别"></td>
            </tr>
            <tr>
                <td>职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;位</td>
                <td><input type="text" id="zw" name="zw"  placeholder="请输入职位"></td>
            </tr>
            <tr>
                <td>备注</td>
                <td><input type="text" id="bz" name="bz"></td>
            </tr>


            <td></td>
            <td><input type="submit" value="添加" style="width: 100px;margin-left: 25px" ></td>
            </tr>

        </table>
    </form>
    <div id="dlg-buttons">
        <a href="${pageContext.request.contextPath}/YGServlet" class="easyui-linkbutton" onclick="javascript:$('#dlg').dialog('close')">关闭</a>
    </div>
</div>
</body>
<script type="text/javascript">
    $("#ygh").textbox({
        required:true,
        missingMessage:'工号不能为空',
    });
    $("#xm").textbox({
        required:true,
        missingMessage:'姓名不能为空',
    });
    $("#mm").textbox({
        required:true,
        missingMessage:'密码不能为空',
    });
    $("#xb").textbox({
        required:true,
        missingMessage:'性别不能为空',
    });
    $("#zw").textbox({
        required:true,
        missingMessage:'职务不能为空',
    });
    $("#bz").textbox({
        required:true,
        missingMessage:'备注不能为空',
    });
</script>
</html>
